﻿$(document).ready(function () {
    var y = $(window).width();
    if (y > 1260) {
        $('#WrapperIn').css('min-width', '1260px');
    }
    else {
        $('#WrapperIn').css('min-width', '980px');
        $('#ColShowHide').fadeOut();        
    }
    $(window).resize(function () {
        var y = $(window).width();
        if (y > 1260) {
            $('#WrapperIn').css('min-width', '1260px');
            $('#ColShowHide').fadeIn();            
        }
        else {
            $('#WrapperIn').css('min-width', '980px');
            $('#ColShowHide').hide();
        }
    });
});

/*********9 Grid*********/
$(function() {
    $('#CommentLastest').scale9Grid({ top: 10, bottom: 10, left: 10, right: 10 });
    $('#Consultant').scale9Grid({ top: 10, bottom: 10, left: 10, right: 10 });
    $('#EventDiv').scale9Grid({ top: 50, bottom: 10, left: 10, right: 10 });
    $('#TopNewsDiv').scale9Grid({ top: 50, bottom: 10, left: 10, right: 10 });
    $('.NewsByConfigItem').scale9Grid({ top: 50, bottom: 10, left: 10, right: 10 });
    $('#MediaDiv').scale9Grid({ top: 50, bottom: 10, left: 10, right: 10 });
    $('#ConsultantOnlineDiv').scale9Grid({ top: 50, bottom: 10, left: 10, right: 10 });
    $('#BlogDiv').scale9Grid({ top: 50, bottom: 10, left: 10, right: 10 });
});
/***************tab news and event***************/
$(function () {
    $("#EventDiv").organicTabs();
    $("#TopNewsDiv").organicTabs();
    $("#MediaDiv").organicTabs();
    $("#BlogDiv").organicTabs();
});